Learn R Programming

ggsurveillance (version 0.3.0)

theme_mod_disable_legend, theme_mod_legend_position: Quickly adjust the legend position

Description

Convenience functions to control the legend position for ggplot2. Has to be called after setting the theme.

Usage

theme_mod_disable_legend()

theme_mod_legend_position( position = c("top", "bottom", "left", "right", "none", "inside"), position.inside = NULL )

theme_mod_legend_top()

theme_mod_legend_bottom()

theme_mod_legend_left()

theme_mod_legend_right()

Value

Changes the legend.position of the ggplot2::theme().

Arguments

position

Position of the ggplot2 legend. Options are ("top", "bottom", "left", "right", "none", "inside")

position.inside

Coordinates for the legend inside the plot. If set overwrites position to inside.